<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"><input type="text" value="222"v-model="tal">{{tal|Upper}}</div>
    <script src="/JS文件/vue.js"></script>
    <script>
        // Vue.filter("currencyDisplay",(val)=>{
        //     return '$'+val.toFixed(2)
        // },);
        var vm = new Vue({
            el:'#app',
            data:{
                tal:"timegemeperfect",
            },
            filters:{
                Upper:function(value){
                    return value.toUpperCase()
                // 'reverse':function(value){
                //     value.split('').reverse().join('');
                }
                
            }
        })
    </script>
</body>
</html>